package com.wlk.controller;

import com.wlk.pojo.dto.AddGrantRecordDTO;
import com.wlk.service.GrantRecordServcie;
import com.wlk.utils.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/grantRecord")
public class GrantRecordController {
    @Resource
    private GrantRecordServcie grantRecordServcie;
    /**
     * @description: 授权操作
     * @author:
     * @date: 2024/6/18 下午11:33
     * @param:
     * @return:
     **/
    @PostMapping("/add")
    public Result add(@RequestBody AddGrantRecordDTO addGrantRecordDTO){
        return grantRecordServcie.addGrantRecord(addGrantRecordDTO);
    }


}
